﻿namespace AspNetMvc.Services.Authentication
{
    /// <summary>
    /// Forms authentication service interface 
    /// </summary>
    public interface IFormsAuthentication
    {
        /// <summary>
        /// Signs user in
        /// </summary>
        /// <param name="userName">Username to sign in</param>
        /// <param name="createPersistentCookie">Creates cookie if true</param>
        void SignIn(string userName, bool createPersistentCookie);

        /// <summary>
        /// Signs current user out
        /// </summary>
        void SignOut();
    }
}